#将bytes字符串转化为bytes
def StrtoByesarray(strdata):
    strarry = [c for c in strdata ]
    

    return bytearray(strarry)


value = "#MODE:01#STATUS:01#CH1:01#CH2:00#BC1:ABCD1234#BC2: #DT:2020-12-14 16:20:36"

print(StrtoByesarray(value  ))